package com.leo.offer;

/**
 * 静态内部类写法
 * @author xuexiaolei
 * @version 2018年03月01日
 */
public class T02Singleton04 {
    private static class Helper{
        private final static T02Singleton04 instance = new T02Singleton04();
    }
    private T02Singleton04(){}

    public static T02Singleton04 getInstance(){
        return Helper.instance;
    }
}
